package www.ld.com.service.imple;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import www.ld.com.dao.DeptDao;
import www.ld.com.entities.Dept;
import www.ld.com.service.IDeptService;

import java.util.List;

@Service
public class DeptService  implements IDeptService {
    @Autowired
    public DeptDao deptDao;

    @Override
    public List<Dept> findAll() {
        return deptDao.selectList(new LambdaQueryWrapper<Dept>());
    }

}
